/*
 * Copyright (c) Ulrich Hilger, http://dev.uhilger.de, all rights reserved.
 *
 * Published under the terms and conditions of the Apache License 2.0,
 * see http://www.apache.org/licenses/LICENSE-2.0
 */

package de.uhilger.servicehub.server;

import de.uhilger.servicehub.model.Role;

/**
 * A role users of applicaiton ServiceHub can have
 *
 * @author Ulrich Hilger, <a href="http://dev.uhilger.de" target="_blank">http://dev.uhilger.de</a>
 * @author Published under the terms and conditions of
 * the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License 2.0</a>
 */
public class ServiceHubRole implements Role {

  private Object roleId;
  private String roleName;

  /**
   * Create a new object of class ServiceHubRole
   */
  public ServiceHubRole() {
    super();
  }

  /**
   * Get the name of this role
   * @return  the role name
   */
  public String getRoleName() {
    return roleName;
  }

  /**
   * Set the name of this role
   * @param roleName   the name to set this role to
   */
  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }

  /**
   * Get a string representation of this role
   * @return  the role as string
   */
  @Override
  public String toString() {
    return getRoleName();
  }

  public void setRoleId(Object id) {
    this.roleId = id;
  }

  public Object getRoleId() {
    return roleId;
  }
}
